package com.cuitrip.business.bill;

import android.content.Context;

import com.cuitrip.service.R;

/**
 * Created by baziii on 15/8/18.
 */
public class BillData {

//    "title": "提现", 			// 账目名称
//            "moneyType": "USD", 		// 取现货币，这个根据数据库记录来显示，其他的按入参的moneyType 显示
//            "money": "100",			// 取现金额
//            "headPic": "********",		// 头像url
//            "userNick":"用户昵称"
//            "gmtModified": "2015-08-10 11:10:10"
//            "cashCurrency": "USD",  // 取现货币，目前仅支持美元取现
//            "cashPrice": "100",     // 取现金额，根据当日实时汇率计算
    //        "title": "提现",    // 账目名称
//                "type": 1,			// 账单类型： 1 入账 2 提现 3 奖励
//                "moneyType": "USD", // 账单取现货币，显示数据库实际记录值
//                "money": "100",     // 账单取现金额，显示数据库实际记录值，并已扣除平台使用费和支付手续费
//                "headPic": "********", // 头像url
//                "userNick": "用户昵称",
//                "billId": 73,          // 账单ID，用于查看详情
//                "cashCurrency": "USD",  // 取现货币，目前仅支持美元取现
//                "cashPrice": "100",     // 取现金额，根据当日实时汇率计算
//                "gmtCreated": "1970年之后的毫秒数"
//    }, {
//        "cashCurrency": "USD",
//                "gmtCreated": "1441982216000",
//                "title": "个人取现",
//                "money": "100.0",
//                "paypal": "",
//                "billId": 53,
//                "cashPrice": "100.00",
//                "type": 2,
//                "moneyType": "USD"
//    }],
    private int status;
    private int type;
    private String billId;
    private String title;
    private String moneyType;
    private String money;
    private String cashCurrency;
    private String cashPrice;
    private String userNick;
    private String headPic;
    private long gmtCreated;
    private  String paypal;
    private int statusString;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getPaypal() {
        return paypal;
    }

    public void setPaypal(String paypal) {
        this.paypal = paypal;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMoneyType() {
        return moneyType;
    }

    public void setMoneyType(String moneyType) {
        this.moneyType = moneyType;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getCashCurrency() {
        return cashCurrency;
    }

    public void setCashCurrency(String cashCurrency) {
        this.cashCurrency = cashCurrency;
    }

    public String getCashPrice() {
        return cashPrice;
    }

    public void setCashPrice(String cashPrice) {
        this.cashPrice = cashPrice;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public long getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(long gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public String getStatusString(Context context) {
        switch (status){
            case 1:
                return context.getString( R.string.withdraw_state_process);
            case 2:
                return context.getString( R.string.withdraw_state_complete);
            case 3:
                return context.getString( R.string.withdraw_state_fail);
            default:
                return "";
        }
    }
}
